﻿<UserControl x:Class="ExORMDesginer.Plugin.Wizard.CodeWizardUIView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
         xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
	mc:Ignorable="d"  d:DesignHeight="240" d:DesignWidth="750">
   
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="180" />
            <RowDefinition Height="78*" />
        </Grid.RowDefinitions>
        <GroupBox BorderThickness="0.3" Margin="7,2,7,0" Grid.Row="0">
            <GroupBox.Header>
                <TextBlock Text="模板参数设置" FontSize="15" Foreground="Azure"/>
            </GroupBox.Header>
            <Grid>
                <StackPanel>
                    <StackPanel Orientation="Horizontal" Height="27" Margin="4">
                        <TextBlock Margin="7,0,0,0" VerticalAlignment="Center" Foreground="#FFAD89FF" Text="公司名称:"/>
                        <TextBox Margin="7,0,0,0" Height="26" Width="104" Text="{Binding Model.Company}" />
                        <TextBlock Margin="7,0,0,0" VerticalAlignment="Center" Foreground="#FFAD89FF" Text="项目名称:"/>
                        <TextBox Margin="7,0,0,0" Height="26" Width="104" Text="{Binding Model.ProjectName}" />
                        <TextBlock Margin="7,0,0,0" VerticalAlignment="Center" Foreground="#FFAD89FF" Text="命名空间:"/>
                        <TextBox Margin="7,0,0,0" Height="26" Width="277"   Text="{Binding Model.NameSpace}"/>
                     
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Height="27" Margin="4">
                        <TextBlock Margin="7,0,0,0" VerticalAlignment="Center" Foreground="#FFAD89FF" Text="代码作者:"/>
                        <TextBox Margin="7,0,0,0" Height="26" Width="104"  Text="{Binding Model.Author}" />
                        <TextBlock Margin="7,0,0,0" VerticalAlignment="Center" Foreground="#FFAD89FF" Text="创建日期:"/>
                        <telerik:RadDatePicker Margin="7,0,0,0" Width="162"  SelectedValue="{Binding Model.CreateDate}" />
                   
                     
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Margin="4">
                        <TextBlock Margin="7,0,0,0" VerticalAlignment="Center" Foreground="#FFAD89FF" Text="模型前缀:"/>
                        <TextBox Margin="7,0,0,0" Height="26" Width="104" Text="{Binding Model.FrontNameFix}" />
                        <TextBlock Margin="7,0,0,0" VerticalAlignment="Center" Foreground="#FFAD89FF" Text="模型后缀:"/>
                        <TextBox Margin="7,0,0,0" Height="26" Width="104" Text="{Binding Model.BackNameFixProperty}"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Margin="4">
                        <CheckBox VerticalAlignment="Center"  Margin="10,5,0,0" IsChecked="{Binding Model.FirstWordToUpper}"  >
                            <TextBlock  Foreground="#FFAD89FF" Text="首字母大写"/>
                        </CheckBox>
                        <CheckBox VerticalAlignment="Center"  Margin="10,5,0,0" IsChecked="{Binding Model.ReplaceSpaceWithUnderscore}" >
                            <TextBlock  Foreground="#FFAD89FF" Text="空格转换为下划线"/>
                        </CheckBox>
                    </StackPanel>
                </StackPanel>

            </Grid>
        </GroupBox>
        <StackPanel Orientation="Horizontal" Grid.Row="1" Height="27" HorizontalAlignment="Right" Margin="10">

            <Button Name="Generator" Width="64">生成</Button>
            <Button Name="AllGenerator" Width="64" Margin="8,0,0,0">批量生成</Button>
            <Button Name="Cancel" Width="64" Margin="8,0,0,0">取消</Button>
        </StackPanel>
    </Grid>
</UserControl>
